package com.example.dream.talentbase.util.physiologymasth.imp;

import com.example.dream.talentbase.util.physiologymasth.PG;

import java.util.Map;

/**
 * @className PGImp
 * @Description 运动生理学统计方法工具类
 * @Autor WUAO
 * @Date 2022/8/17 20 44
 */
public class PGImp implements PG {
    @Override
    public Map<String, Double> nikoA(Map<String, Double> m) {
        if(m.get("羽毛球")!=null){
            m.put("羽毛球",m.get("羽毛球")+0.3);
        }else{
            m.put("羽毛球",0.3);
        }
        if(m.get("摔跤")!=null){
            m.put("摔跤",m.get("摔跤")+0.3);
        }else{
            m.put("摔跤",0.3);
        }
        if(m.get("乒乓球")!=null){
            m.put("乒乓球",m.get("乒乓球")+0.3);
        }else{
            m.put("乒乓球",0.3);
        }
        if(m.get("排球")!=null){
            m.put("排球",m.get("排球")+0.3);
        }else{
            m.put("排球",0.3);
        }
        if(m.get("散打")!=null){
            m.put("散打",m.get("散打")+0.3);
        }else{
            m.put("散打",0.3);
        }
        if(m.get("径赛短跑")!=null){
            m.put("径赛短跑",m.get("径赛短跑")+0.3);
        }else{
            m.put("径赛短跑",0.3);
        }
        if(m.get("篮球")!=null){
            m.put("篮球",m.get("篮球")+0.3);
        }else{
            m.put("篮球",0.3);
        }
        if(m.get("足球")!=null){
            m.put("足球",m.get("足球")+0.3);
        }else{
            m.put("足球",0.3);
        }
        if(m.get("田赛投掷类")!=null){
            m.put("田赛投掷类",m.get("田赛投掷类")+0.3);
        }else{
            m.put("田赛投掷类",0.3);
        }
        if(m.get("田赛跳跃类")!=null){
            m.put("田赛跳跃类",m.get("田赛跳跃类")+0.3);
        }else{
            m.put("田赛跳跃类",0.3);
        }
        if(m.get("体育舞蹈")!=null){
            m.put("体育舞蹈",m.get("体育舞蹈")+0.3);
        }else{
            m.put("体育舞蹈",0.3);
        }
        if(m.get("武术")!=null){
            m.put("武术",m.get("武术")+0.3);
        }else{
            m.put("武术",0.3);
        }
        if(m.get("举重")!=null){
            m.put("举重",m.get("举重")+0.3);
        }else{
            m.put("举重",0.3);
        }
        if(m.get("体操")!=null){
            m.put("体操",m.get("体操")+0.3);
        }else{
            m.put("体操",0.3);
        }
        if(m.get("游泳")!=null){
            m.put("游泳",m.get("游泳")+0.3);
        }else{
            m.put("游泳",0.3);
        }
        return m;
    }

    @Override
    public Map<String, Double> nikoB(Map<String, Double> m) {
        String[] s={"体操","羽毛球","体育舞蹈","乒乓球","武术","田赛跳跃类","径赛中长跑","径赛短跑","田赛投掷类"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> nikoC(Map<String, Double> m) {
        String[] s={"举重","乒乓球","田赛投掷类","田赛跳跃类","羽毛球","径赛短跑类"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> breakOutA(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","乒乓球","排球","散打","径赛短跑","篮球","足球","田赛投掷类","田赛跳跃类","体育舞蹈","武术","举重","体操","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> breakOutB(Map<String, Double> m) {
        String[] s={"篮球","乒乓球","排球","游泳","羽毛球","田赛跳跃类","径赛中长跑","径赛短跑","田赛投掷类"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> breakOutC(Map<String, Double> m) {
        String[] s={"体育舞蹈","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> sensitiveA(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","乒乓球","排球","散打","径赛短跑","篮球","足球","田赛投掷类","田赛跳跃类","体育舞蹈","武术","举重","体操","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> sensitiveB(Map<String, Double> m) {
        String[] s={"摔跤","散打","足球","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> sensitiveC(Map<String, Double> m) {
        String[] s={"举重","武术","体育舞蹈","体操","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> speedA(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","乒乓球","排球","散打","径赛短跑","篮球","足球","田赛投掷类","田赛跳跃类","体育舞蹈","武术","举重","体操","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> speedB(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","排球","散打","武术","径赛中长跑","田赛投掷类"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> speedC(Map<String, Double> m) {
        String[] s={"游泳","举重","体操","体育舞蹈","田赛投掷类"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> flexibilityA(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","乒乓球","排球","散打","径赛短跑","篮球","足球","田赛投掷类","田赛跳跃类","体育舞蹈","武术","举重","体操","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> flexibilityB(Map<String, Double> m) {
        String[] s={"散打","摔跤","田赛投掷类","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return  m;
    }

    @Override
    public Map<String, Double> flexibilityC(Map<String, Double> m) {
        String[] s={"足球","篮球","举重","游泳","径赛短跑","田赛投掷类"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return  m;
    }

    @Override
    public Map<String, Double> reactionA(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","乒乓球","排球","散打","径赛短跑","篮球","足球","田赛投掷类","田赛跳跃类","体育舞蹈","武术","举重","体操","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> reactionB(Map<String, Double> m) {
        String[] s={"足球","篮球","田赛投掷类","田赛跳跃类"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return  m;
    }

    @Override
    public Map<String, Double> reactionC(Map<String, Double> m) {
        String[] s={"体育舞蹈","武术","举重","体操","游泳"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return  m;
    }

    @Override
    public Map<String, Double> springA(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","乒乓球","排球","散打","径赛短跑","篮球","足球","田赛投掷类","田赛跳跃类","体育舞蹈","武术","举重","体操","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> springB(Map<String, Double> m) {
        String[] s={"径赛短跑","篮球","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return  m;
    }

    @Override
    public Map<String, Double> springC(Map<String, Double> m) {
        String[] s={"足球","田赛跳跃类","体育舞蹈","武术","体操"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return  m;
    }

    @Override
    public Map<String, Double> upperLimbA(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","乒乓球","排球","散打","径赛短跑","篮球","足球","田赛投掷类","田赛跳跃类","体育舞蹈","武术","举重","体操","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> upperLimbB(Map<String, Double> m) {
        String[] s={"羽毛球","体育舞蹈","排球","篮球","武术","体操"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return  m;
    }

    @Override
    public Map<String, Double> upperLimbC(Map<String, Double> m) {
        String[] s={"乒乓球","游泳"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return  m;
    }

    @Override
    public Map<String, Double> lowerLimbA(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","乒乓球","排球","散打","径赛短跑","篮球","足球","田赛投掷类","田赛跳跃类","体育舞蹈","武术","举重","体操","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> lowerLimbB(Map<String, Double> m) {
        String[] s={"羽毛球","体育舞蹈","排球","篮球","武术","体操"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> lowerLimbC(Map<String, Double> m) {

        return  m;
    }

    @Override
    public Map<String, Double> balanceA(Map<String, Double> m) {
        String[] s={"羽毛球","摔跤","乒乓球","排球","散打","体操","篮球","足球","武术","田赛跳跃类","体育舞蹈"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> balanceB(Map<String, Double> m) {
        String[] s={"径赛短跑","篮球","足球","排球"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }

    @Override
    public Map<String, Double> balanceC(Map<String, Double> m) {
        String[] s={"田赛投掷类","举重","游泳","径赛中长跑"};
        for (int i = 0; i < s.length; i++) {
            if(m.get(s[i])!=null){
                m.put(s[i],m.get(s[i])+0.3);
            }else{
                m.put(s[i],0.3);
            }
        }
        return m;
    }
}
